﻿- var add_old_psw=false
- var psw_lbl=""
- if (ViewMode && ViewMode == "EditPsw")
	- add_old_psw=true,psw_lbl="新"
form
	.form-group
		lable.xs-col-3 用户名
		input.form-control(type="text", name="username",readonly=ViewMode?true:false, value=account, placeholder="请输入注册帐号名")
	- if (!ViewMode||ViewMode == "EditPsw")
		- if (add_old_psw)
			.form-group
				lable.xs-col-3 原密码
				input.form-control(type="password", id="old_psw", name="old_psw", placeholder="请输入原密码")
		.form-group
			lable.xs-col-3 #{psw_lbl}密码
			input.form-control(type="password", id="password", name="password", placeholder="请输入密码")
		.form-group
			lable.xs-col-3 重复#{psw_lbl}密码
			input.form-control(type="password", name="confirm_password", placeholder="请确认密码")
	- if (!ViewMode||ViewMode == "EditInfo")
		.form-group
			lable.xs-col-3 员工姓名
			input.form-control(type="text", id="emp_name", name="emp_name",value=emp_name, placeholder="请输入姓名")
		.form-group
			lable.xs-col-3 员工编号
			input.form-control(type="text", id="emp_no", name="emp_no",value=emp_no, placeholder="请输入工号")
		.form-group
			.xs-col-3 部门
			select.selectpicker.col-fill(id="dpt_name", name="dpt_name", data-live-search="true", data-size="5",data-style="form-control",multiple,data-value=department_name)
		.form-group
			.xs-col-3 职位
			select.selectpicker.col-fill(id="position", name="position", data-live-search="true", data-size="5",data-style="form-control",multiple,data-value=position)